﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;

namespace Urbania.Components
{
    public class ComponentManager
    {
        private static Game1 game;
        private static GUI.LuaVM lua;

        public ComponentManager()
        {
        }

        public static void SetComponentManager(Game1 gameInput, ref GUI.LuaVM luaInput)
        {
            game = gameInput;
            lua = luaInput;
        }

        public void BeginGame()
        {
            DrawableGameComponent component = game.PopDrawableComponentOffStack();
            WorldComponent worldComponent = new WorldComponent(game);
            worldComponent.Initialize();

            //EventComponent e = new EventComponent(game, "WallmartEvent.lua");
            //e.Initialize();

            game.AddDrawableComponentToStack(worldComponent);
        }
    }
}
